package cn.iocoder.yudao.module.agri.convert.farmrecord;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import cn.iocoder.yudao.module.agri.controller.admin.farmrecord.vo.*;
import cn.iocoder.yudao.module.agri.dal.dataobject.farmrecord.FarmRecordDO;

/**
 * 农事记录 Convert
 *
 * @author 广东小蜂
 */
@Mapper
public interface FarmRecordConvert {

    FarmRecordConvert INSTANCE = Mappers.getMapper(FarmRecordConvert.class);

    FarmRecordDO convert(FarmRecordCreateReqVO bean);

    FarmRecordDO convert(FarmRecordUpdateReqVO bean);

    FarmRecordRespVO convert(FarmRecordDO bean);

    List<FarmRecordRespVO> convertList(List<FarmRecordDO> list);

    PageResult<FarmRecordRespVO> convertPage(PageResult<FarmRecordDO> page);

    List<FarmRecordExcelVO> convertList02(List<FarmRecordDO> list);

}
